<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{{ forum.title }}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="{{ forum.description }}" />
    <meta name="keywords" content="{{ forum.description }}" />
    <link href="/style/subSilver.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/style/thickbox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/style/thickbox.js"></script>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
</head>
<body>
 <table width="100%" cellspacing="0" cellpadding="7" border="0" align="center">
  <tr>
   <td class="bodyline">
    <table width="100%" cellspacing="0" cellpadding="8" border="0" align="center">
     <tbody>
     <tr>
      <td>
       <img vspace="1" border="0" alt="logo" src="/images/logo.png"/>
      </td>
      <td width="100%" valign="middle" align="center">
	<form action="/manageForum" method="post">
        <span class="maintitle" style="color: red">&#31649;&#29702;&#27169;&#24335;</span>
		<br />
	<span class="gen">
	<table>
	 <tr>
	  <td>&#35770;&#22363;&#26631;&#39064; : </td><td><input type="text" size="50" maxlength="100" name="title" value="{{ forum.title }}"></td>
         </tr>
	 <tr>
	  <td>&#25551;&#36848;: </td><td><input type="text" size="50" maxlength="100" name="description" value="{{ forum.description }}"></td>
         </tr>
	 <tr>
	  <td colspan="2" style="text-align: center;"><input type="submit" value="&#20445;&#23384;"></td>
	 </tr>
	</table>
	</span>
	</form>
      </td>
      <td nowrap="nowrap" align="center">
       <span class="gensmall">
	<img src="/avatar" alt="no avatar" /><br />
        <b>{{ user}}</b> | <a href="{{ url }}">&#36864;&#20986;</a><br />
	<a href="/" style="color: red;">&#36820;&#22238;&#35770;&#22363;</a>
       </span>
      </td>
     </tr>
     </tbody>
    </table>

    <table width="100%" cellspacing="2" cellpadding="2" border="0">
    <tbody>
     <tr>
      <td class="nav" valign="bottom" align="left">
       <span class="nav" style="color: rgb(255, 102, 0);">
        <a class="nav" href="/">{{ forum.title }}</a>
       </span>
      </td>
      <td valign="middle" nowrap="nowrap" align="right">
      </td>
     </tr>
    </tbody>
    </table>
    
    <form action="/saveThreadPosition" method="post">
    <div id="imp_topics_277" style="position: relative; font-size: 1.4em;">
    <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0">
    <tbody>
     <tr>
      <th class="thCornerL" nowrap="nowrap" height="25" align="center" style="cursor: pointer;" colspan="2"> &#29256;&#22359; </th>
      <th class="thCornerR" width="150" nowrap="nowrap" align="center"> &#25490;&#24207; </th>
     </tr>
     {% for thread in threads %}
     <tr>
      <td class="row1" width="20" valign="middle" align="center">
       <a href="/delThread?id={{ thread.key.id }}" onclick="return confirm('Are you sure you want to delete thread: {{ thread.name }}?')"><img alt="delete" title="delete" src="/images/icon_delete.gif" border="0" /></a>
      </td>
      <td class="row1" width="100%" style="">
       <span class="topictitle">
	<a href="/modifyThread?id={{ thread.key.id }}&height=120&width=700" class="thickbox" title="Modify Thread">
	<img src="/images/icon_edit.gif" alt="modify" style="border: solid 0px white;"/></a>
	<a class="topictitle" href="viewThread?mode=admin&id={{ thread.key.id }}">{{ thread.name }}</a>
       </span>
      </td>
      <td class="row1" valign="middle" nowrap="nowrap" align="center" style="">
       <span class="postdetails">
       <input type="text" name="thread_{{ thread.key.id }}" value="{{ thread.position }}" />
       </span>
      </td>
     </tr>
     {% endfor %}
     <tr>
      <td class="row1" width="20" valign="middle" align="center">
       
      </td>
      <td class="row1" width="100%" style="">
       <span class="topictitle">
        
       </span>
      </td>
       <td class="row1" valign="middle" nowrap="nowrap" align="center" style="">
	<input type="submit" name="Save" value="&#20445;&#23384;" />
	</form>
       </td>
     </tr>
     <tr>
      <td class="row1" width="20" valign="middle" align="center">
       
      </td>
      <td class="row1" width="100%" style="">
       <span class="topictitle">
	<form action="/addNewThread" method="post">
	 &#26495;&#22359;&#21517;&#31216;: <input type="text" name="name" size="60"/>
	 &#39034;&#24207;: <input type="text" name="position" size="2" value="1"/>
	 <input type="submit" name="Save" value="&#28155;&#21152;&#26495;&#22359; " />
	</form>
       </span>
      </td>
       <td class="row1" valign="middle" nowrap="nowrap" align="center" style="">
       </td>
     </tr>
     
     </tbody>
     </table>
     </form>
    
     
    <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center" style="background: #ffffff;">
    <tbody>
     <tr>
      <td width="90" valign="bottom" align="left">
       <!--<a href="addTopic"><img width="82" height="25" border="0" alt="Add new topic" src="/images/post.gif"/></a>
       <a href="addTopic?height=120&width=700" class="thickbox" title="Add new topic">
        <img width="82" height="25" border="0" alt="Add new topic" src="/images/post.gif"/>
       </a>--> 
      </td>
      <td valign="bottom" align="left">
      </td>
      <td valign="bottom" nowrap="nowrap" align="right">
      </td>
     </tr>
    </tbody>
    </table>
     <br/>
     </div>
     <div align="center" style="background: #ffffff;">
     <span class="copyright"><br/>Powered by <a href="http://code.google.com/p/oveforum/">oveForum1.0</a> &amp;<a href="http://code.google.com/p/googleappengine/">GoogleAppEngine 
      </form>
      </a></span>
   </div>
   </td> 
  </tr>
 </table>
 </body>
</html>
